package wework

import "fmt"

type Response struct {
	ErrCode int `json:"errcode"`
	ErrMsg string `json:"errmsg"`
}

//获取token影响结果
type GetTokenResponse struct {
	Response
	AccessToken string `json:"access_token"`
	ExpiresIn int `json:"expires_in"`
}

func (r GetTokenResponse) ToString() string {
	return fmt.Sprintf("GetTokenResponse{ErrCode:%d,ErrMsg:%s,AccessToken:%s,ExpiresIn:%d}",
		r.ErrCode, r.ErrMsg, r.AccessToken, r.ExpiresIn)
}